﻿using ControlHelper.Attributes;
using System;

namespace Creator.Core.Base
{
    [Obsolete("设计的时候有问题，直接用Component就足够了，这个等整理清楚之后就删除掉。")]
    public abstract class IAction : Behaviour
    {
        public IAction(BaseObject obj) :base(obj) { }

        [Hide]
        public virtual bool StartOnEditor { get;  }
      

        public Action< object, object> EventOnEditor;
        public override void Run(double deltaTime)
        {
            Console.WriteLine($"[{BaseObject?.Name}]IAction Running!"); 
            base.Run(deltaTime);
        }
    }
}
